$(function(){
	paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
	showCondition(true);
	if(typeof(paramTabPage[tabId].previous)=="undefined")
	{
		$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].title);
	}
	else
	{
		if(paramTabPage[tabId].previous=="dep")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].depName+"指标");
		}
		else if(paramTabPage[tabId].previous=="ward")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].wardName+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="mdc")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].mdcCode+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="adrg")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].adrgCode+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="drgs")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].drgsCode+"指标");
		}
		
	}
		
	
	getQuotas("ywcDisLineClinic", loadData);
	
	function loadData(totalQuota){
		//全院指标 (1.mdc 2.All)
		loadHospQuota(paramTabPage[tabId].monitorType,totalQuota,"depgroupallQuotasId","ywcDisLineClinicTotal");
		
		//加载指标的div
		loadYiZhengDoctorDiv(totalQuota,"depgroupquotasId");
		
		//总体指标的数据加载
		loadYiZhengDoctorLayerData(totalQuota,true);
	}
	
});




